#ifndef QTIRRLICHTDEMOS_H
#define QTIRRLICHTDEMOS_H

#include <QtWidgets/QMainWindow>
#include "ui_qtirrlichtdemos.h"
#include "CustomSceneNode.h"


enum DEMO_TYPE{
	DM_NONE,
	DM_HELLOWORLD,
	DM_QUAKE3MAP
};

class QtIrrlichtDemos : public QMainWindow
{
	Q_OBJECT

public:
	QtIrrlichtDemos(QWidget *parent = 0);
	~QtIrrlichtDemos();

	QIrrlichtWidget* getIrrlichtViewer();
	irr::IrrlichtDevice* getDevice();
	irr::scene::ISceneManager*	getSceneManager();

	void showDemos(QTreeWidgetItem* item, int column);

private:
	void showHelloWorldDemo();
	void showQuake3Map();
	void showCustomSceneNodeDemo();

	void clearAllNodes();

private:
	Ui::QtIrrlichtDemosClass ui;

	DEMO_TYPE				m_lastDemo;

};

#endif // QTIRRLICHTDEMOS_H
